﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="SolicitacoesSites.aspx.cs" Inherits="CDSBDemandControl.View.Web.PaginasInternas.SolicitacoesSites" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class="divDireita" style="vertical-align: middle;">
                    <span class="Obs">
                        <asp:Label ID="LblObsOrdenacao" runat="server" Text=""></asp:Label>
                    </span>
                </div>

<asp:GridView ID="GridSolicitacoesSites" runat="server" Caption="Solicitações de Projetos" CaptionAlign="Left"
        AutoGenerateColumns="False" CellPadding="2"  Visible="False"
        GridLines="None" OnDataBinding="Grid_DataBinding" OnRowDataBound="Grid_RowDataBound" AllowSorting="true" OnSorting="GridSolicitacoesSites_Sorting">
        <RowStyle BackColor="#E1ECFC" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" />
        <Columns>
            <asp:TemplateField HeaderText="Scenario" SortExpression="Id">
                <ItemTemplate>
                    <asp:Label ID="lblId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Nome" SortExpression="Title">
                <ItemTemplate>
                    <asp:Label ID="lblTitle" runat="server" Text='<%# this.formatTitle(DataBinder.Eval(Container.DataItem, "Title"),DataBinder.Eval(Container.DataItem, "Description")) %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="500px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Status" SortExpression="State">
                <ItemTemplate>
                    <asp:Label ID="lblState" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "State") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="200px" />
            </asp:TemplateField>            
            
            <asp:TemplateField HeaderText="Ínicio" SortExpression="StartDate">
                <ItemTemplate>
                    <asp:Label ID="lblStart" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Start") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="75px" />
            </asp:TemplateField>            
            
            <asp:TemplateField HeaderText="Término" SortExpression="ConcludeDate">
                <ItemTemplate>
                    <asp:Label ID="lblConclude" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Conclude") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="75px" />
            </asp:TemplateField> 
            
            <asp:TemplateField HeaderText="Qtde. Horas" SortExpression="Hours">
                <ItemTemplate>
                    <asp:Label ID="lblQtdeHoras" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "UsedHours") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
                       
            <asp:TemplateField HeaderText="Designado" SortExpression="AssignedTo">
                <ItemTemplate>
                    <asp:Label ID="lblDesigned" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AssignedTo") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="150px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Projeto" SortExpression="Project">
                <ItemTemplate>
                    <asp:Label ID="lblProject" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Project") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="150px" />
            </asp:TemplateField>            
            <asp:TemplateField HeaderText="Detalhes">
                <ItemTemplate>
                    <asp:LinkButton ID="lnkPopUp" runat="server" onclick="lnkPopUp_Click">Detalhes</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CFDFF9" Font-Names="Verdana" Font-Size="X-Small" Font-Bold="True"
            HorizontalAlign="Left" />
        <HeaderStyle BackColor="#CFDFF9" Font-Names="Verdana" Font-Size="X-Small" Font-Bold="True"
            HorizontalAlign="Left" />
        <AlternatingRowStyle BackColor="White" Font-Names="Verdana" Font-Size="X-Small" Wrap="False" />
    </asp:GridView>
 <br />
 <asp:GridView ID="GridProjetosEmAndamento" runat="server" Caption="Projetos em Andamento" CaptionAlign="Left"
        AutoGenerateColumns="False" CellPadding="2"  Visible="False" AllowSorting="True" OnSorting="GridProjetosEmAndamento_Sorting"
        GridLines="None" OnDataBinding="Grid_DataBinding" OnRowDataBound="Grid_RowDataBound">
        <RowStyle BackColor="#E1ECFC" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" />
        <Columns>
            <asp:TemplateField HeaderText="Scenario" SortExpression="Id">
                <ItemTemplate>
                    <asp:Label ID="lblId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Nome" SortExpression="Title">
                <ItemTemplate>
                    <asp:Label ID="lblTitle" runat="server" Text='<%# this.formatTitle(DataBinder.Eval(Container.DataItem, "Title"),DataBinder.Eval(Container.DataItem, "Description")) %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="500px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Status" SortExpression="State">
                <ItemTemplate>
                    <asp:Label ID="lblState" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "State") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="200px" />
            </asp:TemplateField>            
            
            <asp:TemplateField HeaderText="Ínicio" SortExpression="StartDate">
                <ItemTemplate>
                    <asp:Label ID="lblStart" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Start") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="75px" />
            </asp:TemplateField>            
            
            <asp:TemplateField HeaderText="Término" SortExpression="ConcludeDate">
                <ItemTemplate>
                    <asp:Label ID="lblConclude" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Conclude") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="75px" />
            </asp:TemplateField> 
            
            <asp:TemplateField HeaderText="Qtde. Horas" SortExpression="Hours">
                <ItemTemplate>
                    <asp:Label ID="lblQtdeHoras" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "UsedHours") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
                       
            <asp:TemplateField HeaderText="Designado" SortExpression="AssignedTo">
                <ItemTemplate>
                    <asp:Label ID="lblDesigned" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AssignedTo") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="150px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Projeto" SortExpression="Project">
                <ItemTemplate>
                    <asp:Label ID="lblProject" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Project") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="150px" />
            </asp:TemplateField>            
            <asp:TemplateField HeaderText="Detalhes">
                <ItemTemplate>
                    <asp:LinkButton ID="lnkPopUp" runat="server" onclick="lnkPopUp_Click">Detalhes</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CFDFF9" Font-Names="Verdana" Font-Size="X-Small" Font-Bold="True"
            HorizontalAlign="Left" />
        <HeaderStyle BackColor="#CFDFF9" Font-Names="Verdana" Font-Size="X-Small" Font-Bold="True"
            HorizontalAlign="Left" />
        <AlternatingRowStyle BackColor="White" Font-Names="Verdana" Font-Size="X-Small" Wrap="False" />
    </asp:GridView>  
  <br />
 <asp:GridView ID="GridProjetosIntegrados" runat="server" Caption="Projetos Concluidos" CaptionAlign="Left"
        AutoGenerateColumns="False" CellPadding="2"  Visible="False" AllowSorting="True" OnSorting="GridProjetosIntegrados_Sorting"
        GridLines="None" OnDataBinding="Grid_DataBinding" OnRowDataBound="Grid_RowDataBound">
        <RowStyle BackColor="#E1ECFC" Font-Names="Verdana" Font-Size="X-Small" ForeColor="Black" />
        <Columns>
            <asp:TemplateField HeaderText="Scenario" SortExpression="Id">
                <ItemTemplate>
                    <asp:Label ID="lblId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Nome" SortExpression="Title">
                <ItemTemplate>
                    <asp:Label ID="lblTitle" runat="server" Text='<%# this.formatTitle(DataBinder.Eval(Container.DataItem, "Title"),DataBinder.Eval(Container.DataItem, "Description")) %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="500px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Status" SortExpression="State">
                <ItemTemplate>
                    <asp:Label ID="lblState" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "State") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="200px" />
            </asp:TemplateField>            
            
            <asp:TemplateField HeaderText="Ínicio" SortExpression="StartDate">
                <ItemTemplate>
                    <asp:Label ID="lblStart" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Start") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="75px" />
            </asp:TemplateField>            
            
            <asp:TemplateField HeaderText="Término" SortExpression="ConcludeDate">
                <ItemTemplate>
                    <asp:Label ID="lblConclude" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Conclude") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="75px" />
            </asp:TemplateField> 
            
            <asp:TemplateField HeaderText="Qtde. Horas" SortExpression="Hours">
                <ItemTemplate>
                    <asp:Label ID="lblQtdeHoras" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "UsedHours") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="50px" />
            </asp:TemplateField>
                       
            <asp:TemplateField HeaderText="Designado" SortExpression="AssignedTo">
                <ItemTemplate>
                    <asp:Label ID="lblDesigned" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AssignedTo") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="150px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Projeto" SortExpression="Project">
                <ItemTemplate>
                    <asp:Label ID="lblProject" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Project") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="150px" />
            </asp:TemplateField>            
            <asp:TemplateField HeaderText="Detalhes">
                <ItemTemplate>
                    <asp:LinkButton ID="lnkPopUp" runat="server" onclick="lnkPopUp_Click">Detalhes</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CFDFF9" Font-Names="Verdana" Font-Size="X-Small" Font-Bold="True"
            HorizontalAlign="Left" />
        <HeaderStyle BackColor="#CFDFF9" Font-Names="Verdana" Font-Size="X-Small" Font-Bold="True"
            HorizontalAlign="Left" />
        <AlternatingRowStyle BackColor="White" Font-Names="Verdana" Font-Size="X-Small" Wrap="False" />
    </asp:GridView>

</asp:Content>
